export default class Arc {
  constructor(props) {

    const {
      top,
      left,
      radius,
      fill,
      borderWidth,
      borderColor,
      startAngle = 0,
      endAngle = 2 * Math.PI,
      anticlockwise = false,
    } = props;

    let graphics = new PIXI.Graphics();


    if (fill) graphics.beginFill(fill);
    if (borderWidth && borderColor) graphics.lineStyle(borderWidth, borderColor, 1);

    graphics.arc(0, 0, radius, startAngle, endAngle, anticlockwise);

    graphics.x = left + radius;
    graphics.y = top + radius;

    this.graphics = graphics;

    return this.graphics;
  }
}
